//
//  UIView+MZCategory.h
//  MZToolkitDemo
//
//  Created by 沈家林 on 2017/11/1.
//  Copyright © 2017年 Chris Yang. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void (^MZGestureActionBlock)(UIGestureRecognizer *gestureRecoginzer);

@interface UIView (MZCategory)

#pragma mark xib扩展

@property (copy  , nonatomic) IBInspectable UIColor *mzBorderColor;  //边框颜色
@property (assign, nonatomic) IBInspectable CGFloat mzBorderWidth;   //边框宽度
@property (assign, nonatomic) IBInspectable CGFloat mzCornerRadius;  //圆角

@property (assign, nonatomic) IBInspectable BOOL mzMasksToBounds;    //超出父图层的部分就截取掉

@property (copy  , nonatomic) IBInspectable UIColor *mzShadowColor;  //阴影颜色
@property (assign, nonatomic) IBInspectable CGSize mzShadowOffset;    //阴影偏移
@property (assign, nonatomic) IBInspectable CGFloat mzShadowOpacity;   //阴影透明度
@property (assign, nonatomic) IBInspectable CGFloat mzShadowRadius;    //阴影半径

#pragma mark block类型手势

/**
 *  @brief  添加tap手势
 *
 *  @param block 代码块
 */
- (void)mzAddTapActionWithBlock:(MZGestureActionBlock)block;

/**
 *  @brief  添加长按手势
 *
 *  @param block 代码块
 */
- (void)mzAddLongPressActionWithBlock:(MZGestureActionBlock)block;

@end
